<template>
  <div>
    <el-table
      :data="works"

      border
      row-key="id"
      style="width: 100%;margin-bottom: 20px;">
      <el-table-column
        fixed
        label="编号"
        prop="date"
        sortable
        width="180">
      </el-table-column>
      <el-table-column
        fixed
        label="标题"
        prop="date"
        sortable
        width="180">
      </el-table-column>
      <el-table-column
        label="状态"
        prop="name"
        sortable
        width="180">
      </el-table-column>
      <el-table-column
        label="负责人"
        prop="name"
        sortable
        width="180">
      </el-table-column>
      <el-table-column
        label="优先级"
        prop="name"
        sortable
        width="180">
      </el-table-column>
      <el-table-column
        label="父工作项"
        prop="address">
      </el-table-column>
      <el-table-column
        label="需求类型"
        prop="address">
      </el-table-column>
      <el-table-column
        label="创建时间"
        prop="address">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import {listWork} from "@/api/projectUser/userWork";
import work from "@/views/projectAdmin/work/index.vue";

export default {
  name: 'Backlog',

  data() {
    return {
      works:[],
      query:{}
    }
  },
  props: {
    projectId: {
      type: [String, Number],
    }
  },
  created() {
    this.getWorks()
  },
  methods: {
    work,
    getWorks(){
      listWork(this.projectId,this.query).then(res=>{
        this.works = res.rows
      })
    }
  },
}
</script>
<style lang="scss" scoped>

</style>
